package br.ucb.cesbdao.main;

import org.apache.log4j.BasicConfigurator;
import org.apache.log4j.Logger;

import br.ucb.cesbdao.servicos.Servicos;


public class Main {
	static Logger logger;

	public static void main(String[] args) {
		try {
			BasicConfigurator.configure();
			logger = Servicos.carregaLog(Main.class);
			logger.info("Iniciando a Aplicação.");
			for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager
					.getInstalledLookAndFeels()) {
				if ("Nimbus".equals(info.getName())) {
					javax.swing.UIManager.setLookAndFeel(info.getClassName());
					break;
				}
			}
		} catch (Exception ex) {
			logger.error(ex.getMessage());
		}
		Servicos.verificaBancoAcesso();
	}
}